package com.example.common;

public class BaseContext {
    //操作了什么？ TL对象只能一个
    private  static ThreadLocal threadLocal=new ThreadLocal();

    /**
     * 设置值
     * @param obj
     */
    public static void setContext(Object obj){
        threadLocal.set(obj);
    }

    public static Object getContext(){
        return threadLocal.get();
    }
}
